package com.airlines.crewassignment.service.basicinfo;

import com.airlines.common.Page;
import com.airlines.crewassignment.entity.basicinfo.OvernightAirport;
import java.util.List;

/**
 * @author xxxx
 * @date 2018/06/05 10:53:58
 * @company xxxx Airlines
 * @description 
 */
public interface OvernightAirportService {

    /**
     * 添加 （返回主键ID）
     * @param overnightAirport
     * @return
     */
    int insert(OvernightAirport overnightAirport);


    /**
     * 物理删除
     * @param nightAirport
     * @return
     */
    int delete(String nightAirport);


    /**
     * 修改
     * @param overnightAirport
     * @return
     */
    int update(OvernightAirport overnightAirport);


    /**
     * 通过主键查询
     * @param nightAirport
     * @return
     */
     OvernightAirport get(String nightAirport);

    /**
     * 多条件查询
     * @param overnightAirport
     * @return
     */
    List<OvernightAirport> list(OvernightAirport overnightAirport);

    /**
     * 多条件模糊查询
     * @param overnightAirport
     * @param page
     * @return
     */
    Page list(OvernightAirport overnightAirport, Page page);

}
